#preview {
    position: fixed;
    width: 100%;
    justify-content: center;
    display: flex;
    background-color: #111;
    transition: opacity .3s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

#preview:not(:empty) {
    opacity: 1;
    pointer-events: initial;
}

#preview img {
    max-height: calc(100% - 15rem);
    max-width: calc(100% - 2rem);
    align-self: center;
    border-radius: 0.5rem;
    margin-top: -1rem;
    position: relative;
}

#preview .pinfo {
    position: absolute;
    color: white;
    bottom: 12rem;
    background-color: rgba(0, 0, 0, 0.75);
    font-size: 1.75rem;
    line-height: 3.5rem;
    padding: 0 2rem;
    border-radius: 2rem;
    transition: opacity .3s cubic-bezier(.4,0,.2,1);
}

#preview img:hover ~ .pinfo{
    opacity: 0.25;
}

#preview .buttons {
    position: absolute;
    bottom: 1rem;
    text-align: center;
}

#preview .prevnext {
    font-size: 5rem;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    line-height: 7rem;
    width: 7rem;
    border-radius: 100%;
    color: white;
    height: 7rem;
    text-align: center;

    position: absolute;
    top: calc(50% - 3.5rem);

    display: none;
}

#preview .prevnext:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

#preview .prevnext.enabled {
    display: inline-block;
}

#preview .prevnext.prev {
    left: 1.5rem;
}

#preview .prevnext.next {
    right: 1.5rem;
}

#preview .counter {
    color: white;
    font-size: 1.75rem;
    line-height: 6rem;
    display: block;
    text-align: center;
    position: absolute;
}

/* Previewable */
.previewable {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.previewable img {
    transition: opacity 0.1s ease-in-out;
    border-radius: 0.25rem;
    overflow: hidden;
}

.previewable:hover img {
    opacity: 0.6;
}

.previewable:after {
    color: white;
    font-family: 'Material Icons';
    content: "\e8ff";
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.75);
    position: absolute;
    display: block;
    font-size: 3rem;
    right: 0.75rem;
    top: 1.25rem;
    pointer-events: none;
}